package com.smallA.association.bo;

import com.smallA.association.pojo.Association;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用于返回前端的试卷集合
 *
 * @author wanda
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultAssociation {
    Integer id;
    String name;
    String associationStudentName;
    String associationStudentNumber;
    String associationStudentPhone;
    String associationRegisterEmail;
    String teacherName;
    String teacherPhone;
    String associationIntroduction;
    Integer state;

    public ResultAssociation(Association association, Integer state) {
        this.id = association.getId();
        this.name = association.getName();
        this.associationStudentName = association.getAssociationStudentName();
        this.associationStudentNumber = association.getAssociationStudentNumber();
        this.associationStudentPhone = association.getAssociationStudentPhone();
        this.associationRegisterEmail = association.getAssociationRegisterEmail();
        this.teacherName = association.getTeacherName();
        this.teacherPhone = association.getTeacherPhone();
        this.associationIntroduction = association.getAssociationIntroduction();
        this.state = state;
    }
}
